<template>
  <FormComponent @submit="onSubmit">
    <InputComponent :rules="[(v) => true]" />
    <button label="submit form" type="submit"></button>
  </FormComponent>
</template>
<script setup>
import InputComponent from './InputComponent.vue';
import FormComponent from './FormComponent.vue';

const onSubmit = () => {
  console.log('onSubmit')
}
//https://stackoverflow.com/questions/64407883/vue-3-access-child-component-from-slots
</script>
<style lang="">

</style>